function getURLParameter() {
  var url = window.location.href;
  var paramsString = url.split("?")[1];
  if (paramsString) {
    // 将参数字符串转换为键值对形式的对象
    var paramsObject = {};
    var paramArray = paramsString.split("&");
    for (var i = 0; i < paramArray.length; i++) {
      var keyValuePair = paramArray[i].split("=");
      var key = decodeURIComponent(keyValuePair[0]);
      var value = decodeURIComponent(keyValuePair[1] || "");
      paramsObject[key] = value;
    }
    return paramsObject;
    console.log("Received parameters:", paramsObject);
  } else {
    return "";
  }
}
